package org.igs.android.ogl.engine;

public class Keyboard {

	// Field descriptor #13 I
	public static final int KEYCODE_UNKNOWN = 0;

	// Field descriptor #13 I
	public static final int KEYCODE_SOFT_LEFT = 1;

	// Field descriptor #13 I
	public static final int KEYCODE_SOFT_RIGHT = 2;

	// Field descriptor #13 I
	public static final int KEYCODE_HOME = 3;

	// Field descriptor #13 I
	public static final int KEYCODE_BACK = 4;

	// Field descriptor #13 I
	public static final int KEYCODE_CALL = 5;

	// Field descriptor #13 I
	public static final int KEYCODE_ENDCALL = 6;

	// Field descriptor #13 I
	public static final int KEYCODE_0 = 7;

	// Field descriptor #13 I
	public static final int KEYCODE_1 = 8;

	// Field descriptor #13 I
	public static final int KEYCODE_2 = 9;

	// Field descriptor #13 I
	public static final int KEYCODE_3 = 10;

	// Field descriptor #13 I
	public static final int KEYCODE_4 = 11;

	// Field descriptor #13 I
	public static final int KEYCODE_5 = 12;

	// Field descriptor #13 I
	public static final int KEYCODE_6 = 13;

	// Field descriptor #13 I
	public static final int KEYCODE_7 = 14;

	// Field descriptor #13 I
	public static final int KEYCODE_8 = 15;

	// Field descriptor #13 I
	public static final int KEYCODE_9 = 16;

	// Field descriptor #13 I
	public static final int KEYCODE_STAR = 17;

	// Field descriptor #13 I
	public static final int KEYCODE_POUND = 18;

	// Field descriptor #13 I
	public static final int KEYCODE_DPAD_UP = 19;

	// Field descriptor #13 I
	public static final int KEYCODE_DPAD_DOWN = 20;

	// Field descriptor #13 I
	public static final int KEYCODE_DPAD_LEFT = 21;

	// Field descriptor #13 I
	public static final int KEYCODE_DPAD_RIGHT = 22;

	// Field descriptor #13 I
	public static final int KEYCODE_DPAD_CENTER = 23;

	// Field descriptor #13 I
	public static final int KEYCODE_VOLUME_UP = 24;

	// Field descriptor #13 I
	public static final int KEYCODE_VOLUME_DOWN = 25;

	// Field descriptor #13 I
	public static final int KEYCODE_POWER = 26;

	// Field descriptor #13 I
	public static final int KEYCODE_CAMERA = 27;

	// Field descriptor #13 I
	public static final int KEYCODE_CLEAR = 28;

	// Field descriptor #13 I
	public static final int KEYCODE_A = 29;

	// Field descriptor #13 I
	public static final int KEYCODE_B = 30;

	// Field descriptor #13 I
	public static final int KEYCODE_C = 31;

	// Field descriptor #13 I
	public static final int KEYCODE_D = 32;

	// Field descriptor #13 I
	public static final int KEYCODE_E = 33;

	// Field descriptor #13 I
	public static final int KEYCODE_F = 34;

	// Field descriptor #13 I
	public static final int KEYCODE_G = 35;

	// Field descriptor #13 I
	public static final int KEYCODE_H = 36;

	// Field descriptor #13 I
	public static final int KEYCODE_I = 37;

	// Field descriptor #13 I
	public static final int KEYCODE_J = 38;

	// Field descriptor #13 I
	public static final int KEYCODE_K = 39;

	// Field descriptor #13 I
	public static final int KEYCODE_L = 40;

	// Field descriptor #13 I
	public static final int KEYCODE_M = 41;

	// Field descriptor #13 I
	public static final int KEYCODE_N = 42;

	// Field descriptor #13 I
	public static final int KEYCODE_O = 43;

	// Field descriptor #13 I
	public static final int KEYCODE_P = 44;

	// Field descriptor #13 I
	public static final int KEYCODE_Q = 45;

	// Field descriptor #13 I
	public static final int KEYCODE_R = 46;

	// Field descriptor #13 I
	public static final int KEYCODE_S = 47;

	// Field descriptor #13 I
	public static final int KEYCODE_T = 48;

	// Field descriptor #13 I
	public static final int KEYCODE_U = 49;

	// Field descriptor #13 I
	public static final int KEYCODE_V = 50;

	// Field descriptor #13 I
	public static final int KEYCODE_W = 51;

	// Field descriptor #13 I
	public static final int KEYCODE_X = 52;

	// Field descriptor #13 I
	public static final int KEYCODE_Y = 53;

	// Field descriptor #13 I
	public static final int KEYCODE_Z = 54;

	// Field descriptor #13 I
	public static final int KEYCODE_COMMA = 55;

	// Field descriptor #13 I
	public static final int KEYCODE_PERIOD = 56;

	// Field descriptor #13 I
	public static final int KEYCODE_ALT_LEFT = 57;

	// Field descriptor #13 I
	public static final int KEYCODE_ALT_RIGHT = 58;

	// Field descriptor #13 I
	public static final int KEYCODE_SHIFT_LEFT = 59;

	// Field descriptor #13 I
	public static final int KEYCODE_SHIFT_RIGHT = 60;

	// Field descriptor #13 I
	public static final int KEYCODE_TAB = 61;

	// Field descriptor #13 I
	public static final int KEYCODE_SPACE = 62;

	// Field descriptor #13 I
	public static final int KEYCODE_SYM = 63;

	// Field descriptor #13 I
	public static final int KEYCODE_EXPLORER = 64;

	// Field descriptor #13 I
	public static final int KEYCODE_ENVELOPE = 65;

	// Field descriptor #13 I
	public static final int KEYCODE_ENTER = 66;

	// Field descriptor #13 I
	public static final int KEYCODE_DEL = 67;

	// Field descriptor #13 I
	public static final int KEYCODE_GRAVE = 68;

	// Field descriptor #13 I
	public static final int KEYCODE_MINUS = 69;

	// Field descriptor #13 I
	public static final int KEYCODE_EQUALS = 70;

	// Field descriptor #13 I
	public static final int KEYCODE_LEFT_BRACKET = 71;

	// Field descriptor #13 I
	public static final int KEYCODE_RIGHT_BRACKET = 72;

	// Field descriptor #13 I
	public static final int KEYCODE_BACKSLASH = 73;

	// Field descriptor #13 I
	public static final int KEYCODE_SEMICOLON = 74;

	// Field descriptor #13 I
	public static final int KEYCODE_APOSTROPHE = 75;

	// Field descriptor #13 I
	public static final int KEYCODE_SLASH = 76;

	// Field descriptor #13 I
	public static final int KEYCODE_AT = 77;

	// Field descriptor #13 I
	public static final int KEYCODE_NUM = 78;

	// Field descriptor #13 I
	public static final int KEYCODE_HEADSETHOOK = 79;

	// Field descriptor #13 I
	public static final int KEYCODE_FOCUS = 80;

	// Field descriptor #13 I
	public static final int KEYCODE_PLUS = 81;

	// Field descriptor #13 I
	public static final int KEYCODE_MENU = 82;

	// Field descriptor #13 I
	public static final int KEYCODE_NOTIFICATION = 83;

	// Field descriptor #13 I
	public static final int KEYCODE_SEARCH = 84;

	// Field descriptor #13 I
	public static final int MAX_KEYCODE = 84;

	// Field descriptor #13 I
	public static final int ACTION_DOWN = 0;

	// Field descriptor #13 I
	public static final int ACTION_UP = 1;

	// Field descriptor #13 I
	public static final int ACTION_MULTIPLE = 2;

	// Field descriptor #13 I
	public static final int META_ALT_ON = 2;

	// Field descriptor #13 I
	public static final int META_ALT_LEFT_ON = 16;

	// Field descriptor #13 I
	public static final int META_ALT_RIGHT_ON = 32;

	// Field descriptor #13 I
	public static final int META_SHIFT_ON = 1;

	// Field descriptor #13 I
	public static final int META_SHIFT_LEFT_ON = 64;

	// Field descriptor #13 I
	public static final int META_SHIFT_RIGHT_ON = 128;

	// Field descriptor #13 I
	public static final int META_SYM_ON = 4;

	// Field descriptor #13 I
	public static final int FLAG_WOKE_HERE = 1;

	private static boolean[] keys = new boolean[128];

	public static boolean isKeyDown(int keyCode) {
		return keys[keyCode];
	}

	static void setKeyDown(int keyCode) {
		keys[keyCode] = true;
	}

	static void setKeyUp(int keyCode) {
		keys[keyCode] = false;
	}

}
